<section class="title">
<?php if ($this->method == 'create'): ?>
	<?php $readonly = '';?>
	<h4><?php echo lang('escort_be_discount_type_add_title'); ?></h4>
<?php else: ?>
	<?php $readonly = 'readonly="readonly"';?>
	<h4><?php echo sprintf(lang('escort_be_discount_edit_title'), $discount->id); ?></h4>
<?php endif; ?>
</section>
<section class="item">
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="news-form">
	<fieldset>
		<ul>
			<li class="even">
				<label for="month_period"><?php echo lang('escort_be_discount_month_period_label'); ?> <span>*</span></label>
				<div class="input"><?php echo form_input('month_period', $discount->month_period, 'maxlength="100" id="month_period" '); ?>
				</div>				
			</li>
			<li class="odd">
				<label for="percent_discount"><?php echo lang('escort_be_discount_percent_discount_label'); ?></label>
				<div class="input">					
					<?php echo form_input('percent_discount',  $discount->percent_discount, 'id="percent_discount"') ?>
				</div>
			</li>
			<li class="even">
				<label for="active"><?php echo lang('escort_be_discount_active_label'); ?></label>
				<div class="input">
					<?php echo form_checkbox('active',1, $discount->active)?>
				</div>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>